import request from "@/sheep/request";

export default {
  getAddressList: (params = {}) =>
    request({
      url: "/no-auth/cake/getAddressList",
      method: "GET",
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  getStoreList: (params = {}) =>
    request({
      url: "/no-auth/cake/getStoreList",
      method: "GET",
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  getProductByShopId: (params = {}) =>
    request({
      url: "/no-auth/cake/getProductByShopId",
      method: "GET",
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  getCakeProductList: (data, params) =>
    request({
      url: "no-auth/product/list",
      method: "post",
      data,
      params,
      custom: {
        showLoading: false,
        showError: false,
      },
    }),
};
